package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.ItemShopComment;
import cn.wolfcode.luowowo.comment.domain.SpotComment;
import cn.wolfcode.luowowo.comment.query.SpotCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ISpotCommentService {
    /**
     * 保存用户评论
     *
     * @param spotComment
     */
    SpotComment saveOrUpdate(SpotComment spotComment);

    /**
     * 分页
     *
     * @param
     * @return
     */
    Page<SpotComment> query(SpotCommentQuery qo);

    /**
     * 获取当前评论的总数
     *
     * @param spotId
     */

    long getCount(Long spotId);

    List<SpotComment> selectNewCommentTop10();
}
